import { getAddressList } from '@/api/my'
const ERR_OK = 200
export default {
  data () {
    return {
      address: null
    }
  },
  created () {
    console.log(this.address)
    this._getAddressList()
  },
  methods: {
    _getAddressList () {
      getAddressList()
        .then(res => {
          if (res.code === ERR_OK) {
            this.address = res.data
          }
        })
        .catch(err => {
          console.log(err)
        })
    }
  }
}
